package com.igeek.boot.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author fengqq
 * @Description 统一返回结果集
 * @Date 2024/8/23  11:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("返回结果集")
public class Result {
    @ApiModelProperty("响应状态码")
    private Integer code;
    @ApiModelProperty("响应结果信息")
    private String message;
    @ApiModelProperty("响应结果数据")
    private Object data;

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
